﻿<UserControl x:Class="AllProgrammic.WPF.DataForm.DataForm"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <ControlTemplate x:Key="errorTemplate">
            <DockPanel>
                <Border BorderThickness="1" BorderBrush="Red">
                    <AdornedElementPlaceholder x:Name="placeholder"/>
                </Border>
                <Image DockPanel.Dock="Right" Source="./error.png" Stretch="Fill" Height="16" Width="16" ToolTip="{Binding ElementName=placeholder,
                    Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" />
            </DockPanel>
        </ControlTemplate>
    </UserControl.Resources>
    <Grid x:Name="Layout">
            
    </Grid>
</UserControl>
